.class Lcom/nemustech/regina/ReginaWallpaperSelector$2;
.super Ljava/lang/Object;
.source "ReginaWallpaperSelector.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/ReginaWallpaperSelector;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/ReginaWallpaperSelector;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ReginaWallpaperSelector;)V
    .locals 0
    .parameter

    .prologue
    .line 167
    iput-object p1, p0, Lcom/nemustech/regina/ReginaWallpaperSelector$2;->this$0:Lcom/nemustech/regina/ReginaWallpaperSelector;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4
    .parameter "v"

    .prologue
    .line 170
    iget-object v1, p0, Lcom/nemustech/regina/ReginaWallpaperSelector$2;->this$0:Lcom/nemustech/regina/ReginaWallpaperSelector;

    invoke-static {v1}, Lcom/nemustech/regina/ReginaWallpaperSelector;->access$700(Lcom/nemustech/regina/ReginaWallpaperSelector;)Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    const-string v2, "regina.theme.wallpaper.package"

    iget-object v3, p0, Lcom/nemustech/regina/ReginaWallpaperSelector$2;->this$0:Lcom/nemustech/regina/ReginaWallpaperSelector;

    invoke-static {v3}, Lcom/nemustech/regina/ReginaWallpaperSelector;->access$000(Lcom/nemustech/regina/ReginaWallpaperSelector;)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 172
    iget-object v1, p0, Lcom/nemustech/regina/ReginaWallpaperSelector$2;->this$0:Lcom/nemustech/regina/ReginaWallpaperSelector;

    invoke-static {v1}, Lcom/nemustech/regina/ReginaWallpaperSelector;->access$200(Lcom/nemustech/regina/ReginaWallpaperSelector;)Ljava/util/ArrayList;

    move-result-object v1

    iget-object v2, p0, Lcom/nemustech/regina/ReginaWallpaperSelector$2;->this$0:Lcom/nemustech/regina/ReginaWallpaperSelector;

    invoke-static {v2}, Lcom/nemustech/regina/ReginaWallpaperSelector;->access$800(Lcom/nemustech/regina/ReginaWallpaperSelector;)Landroid/widget/Gallery;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Gallery;->getSelectedItemPosition()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    .line 173
    .local v0, resId:I
    iget-object v1, p0, Lcom/nemustech/regina/ReginaWallpaperSelector$2;->this$0:Lcom/nemustech/regina/ReginaWallpaperSelector;

    invoke-static {v1}, Lcom/nemustech/regina/ReginaWallpaperSelector;->access$700(Lcom/nemustech/regina/ReginaWallpaperSelector;)Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    const-string v2, "regina.theme.wallpaper.resid"

    invoke-interface {v1, v2, v0}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    .line 174
    iget-object v1, p0, Lcom/nemustech/regina/ReginaWallpaperSelector$2;->this$0:Lcom/nemustech/regina/ReginaWallpaperSelector;

    invoke-static {v1}, Lcom/nemustech/regina/ReginaWallpaperSelector;->access$700(Lcom/nemustech/regina/ReginaWallpaperSelector;)Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    const-string v2, "regina.theme.wallpaper.flag"

    const/4 v3, 0x1

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 176
    iget-object v1, p0, Lcom/nemustech/regina/ReginaWallpaperSelector$2;->this$0:Lcom/nemustech/regina/ReginaWallpaperSelector;

    invoke-static {v1}, Lcom/nemustech/regina/ReginaWallpaperSelector;->access$700(Lcom/nemustech/regina/ReginaWallpaperSelector;)Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 178
    iget-object v1, p0, Lcom/nemustech/regina/ReginaWallpaperSelector$2;->this$0:Lcom/nemustech/regina/ReginaWallpaperSelector;

    iget-object v2, p0, Lcom/nemustech/regina/ReginaWallpaperSelector$2;->this$0:Lcom/nemustech/regina/ReginaWallpaperSelector;

    const v3, 0x7f0700f5

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/ReginaWallpaperSelector;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->showToast(Landroid/content/Context;Ljava/lang/String;)Landroid/widget/Toast;

    .line 180
    return-void
.end method
